package _06PrototypeDesignPattern;

public class ShallowAddress {
    private String add;
    private int num;

    public String getAdd() {
        return add;
    }

    public void setAdd(String add) {
        this.add = add;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
    public ShallowAddress(String add,int num){
        this.add=add;
        this.num=num;
    }

    @Override
    public String toString() {
        return "Address{" +
                "add='" + add + '\'' +
                ", num=" + num +
                '}';
    }

}
